package com.itheima;

import com.itheima.service.GoodsService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author itheima
 * @since 2021-10-25
 */
public class App {
    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
        GoodsService goodsService = (GoodsService) ctx.getBean("goodsService");
        System.out.println(goodsService.getByGroup());
    }
}
